#ifndef UserDialog_H
#define UserDialog_H

#include <QWidget>
#include <QImage>
#include <QPixmap>

namespace Ui {
class UserDialog;
}

class UserDialog : public QWidget
{
    Q_OBJECT

public:
    explicit UserDialog(QWidget *parent = 0);
    ~UserDialog();

public:
    void setUser(QString name, QImage image);

protected:
    virtual void paintEvent(QPaintEvent *event) override;

private:
    Ui::UserDialog *ui;
};

#endif // UserDialog_H
